* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #89c9f5;
    --primary-light: #4895ef;
    --secondary: #966cf1;
    --accent: #bc77ee;
    --success: #4cc9f0;
    --warning: #f72585;
    --text: rgba(3, 3, 3, 0.6);
    --text-light: #6c757d;
    --bg: #f8f9fb;
    --card-bg: #ffffff;
    --border: #e9ecef;
    --shadow: rgba(0, 0, 0, 0.08);
    --hover-shadow: rgba(67, 97, 238, 0.15);
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.question-content {
    margin-bottom: 20px; /* 增加题目与选项之间的间距 */
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.options-container {
    width: 100%;
    text-align: left; /* 确保整个选项容器左对齐 */
    margin-top: 15px; /* 题目和选项之间的间距 */
}

.radio-options-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 选项左对齐 */
    gap: 12px; /* 选项之间的间距 */
}

.option-item {
    display: block; /* 每个选项单独一行 */
    margin: 8px 0; /* 选项垂直间距 */
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    width: calc(100% - 30px); /* 让选项有足够的宽度 */
}

.option-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

/* 填空题样式调整 */
.fill_in-container {
    margin-top: 20px;
    width: 100%;
}

.beautiful-practice-card {
    background: linear-gradient(145deg, #ffffff, #f2f3f5);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.beautiful-practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
}

.practice-intro p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 500;
}

.start-button {
    background: var(--accent);
    border: none;
    border-radius: 30px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(114, 9, 183, 0.3);
}

.start-button:hover {
    background: #b5179e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(114, 9, 183, 0.4);
}

.order-practice-page {
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo::before {
    content: "📚";
    font-size: 28px;
}

.el-menu {
    background: transparent !important;
    border: none !important;
}

.el-menu--horizontal > .el-menu-item {
    color: rgba(255, 255, 255, 0.85) !important;
    height: 70px;
    line-height: 70px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: none !important;
}
.el-menu--horizontal > .el-menu-item:not(.is-active):hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}
.el-menu--horizontal > .el-menu-item.is-active {
    color: white !important;
    font-weight: 600;
}
.el-menu--horizontal > .el-menu-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.auth-buttons > .el-button {
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}
.auth-buttons > .el-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.practice-content {
    display: flex;
    flex-direction: column;
    align-items: center;     /* 水平居中 */
    justify-content: center; /* ✅ 垂直居中 */
    padding: 40px;
    background: #f2f2f2;
    min-height: calc(100vh - 70px);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 20px;
}

.practice-card {
    width: 80%;
    max-width: 700px;
    text-align: center;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.el-dialog {
    width: 1000px !important;
    height: 1000px !important;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;

    /* ✅ 居中显示 */
    margin: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}


.el-dialog__header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 20px;
    margin: 0;
}

.el-dialog__title {
    color: white !important;
    font-size: 20px;
    font-weight: 600;
}

.el-dialog__headerbtn .el-dialog__close {
    color: white !important;
    font-size: 20px;
}

.el-dialog__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.question-block {
    flex: 1;
    overflow-y: auto;
    max-height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.question-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
}

.question-type {
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.question-content {
    font-size: 19px;
    margin-bottom: 30px;
    line-height: 1.8;

    /* 左对齐关键 */
    padding-left: 20px;
    text-align: left;
}

.options-container,
.fill_in-container {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* 左对齐关键 */
    padding-left: 20px;
}

.el-radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;

    /* 移除额外左右内边距 */
    padding-left: 0 !important;
    margin-left: 0 !important;
    width: 100%;
}

.el-radio {
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 0 !important;
}

.el-radio__input {
    margin: 0 !important;
    flex-shrink: 0;
}

.el-radio__label {
    user-select: none;
}

/* 填空题样式 */
.el-input {
    margin-top: 15px;
    font-size: 17px;
    padding-left: 20px; /* 保持左对齐和题目文本一致 */
}

.el-input :deep(.el-input__inner) {
    height: 48px;
    border-radius: 10px;
    border: 2px solid var(--border);
    padding: 0 18px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.el-input :deep(.el-input__inner:focus) {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.dialog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px 0 0;
    border-top: 1px solid var(--border);
    z-index: 5;
}

.action-buttons-full {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.el-button {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.el-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.favorite-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.favorite-btn:hover {
    background: rgba(245, 108, 108, 0.1);
}

.correct-answer {
    background: rgba(76, 201, 240, 0.15);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--success);
    font-size: 16px;
}

.comments-section {
    max-height: 180px;
    overflow-y: auto;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
}

.comments-section h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-item {
    background: rgba(248, 249, 251, 0.8);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.comment-author {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.new-comment-input {
    margin: 10px 0;
}

.submit-comment-btn {
    background: var(--primary) !important;
    color: white;
    border-radius: 6px;
    padding: 8px 16px;
}
.comment-footer {
    margin-top: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.comment-list-wrapper {
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 4px;
}
.like-btn {
    padding: 4px;
    display: flex;
    align-items: center;
    color: #606266;
}

.like-btn:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.delete-btn {
    padding: 4px;
    display: flex;
    align-items: center;
    color: #606266;
}
.delete-btn:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s;
}

